checkbutton: Fix redraw issues
authorBenjamin Otte <otte@redhat.com>
Sun, 17 Aug 2014 04:24:41 +0000 (06:24 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 17 Aug 2014 04:25:29 +0000 (06:25 +0200)
commit442353fa9d78d6ada6991d4dcf8ba81c2dc52e0d
tree0a0945fd10e33f960218d4e767f3f2cb95150428
parentc4c9b20a056b115c83454d553d4e73aa65ffbf07
checkbutton: Fix redraw issues

This is a hack to get around the optimizations done by the CSS engine.

The CSS engine will notice that no CSS properties changed on the
widget itself when going from one state to another and not queue
a redraw.
And the reason for no properties changing will be that only the
checkmark itself changes, but that is hidden behind a
gtk_style_context_save()/_restore() pair, so it won't be caught.
gtk/gtkcheckbutton.c